//-----------------------------------------------------------------------
// <copyright file="a_products_specs_detService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_products_specs_detService
    {
        #region a_products_specs_det

        public static void Createa_products_specs_det(a_products_specs_det a_products_specs_det)
        {            
            try
            {
                a_products_specs_detDAO a_products_specs_detDAO = new a_products_specs_detDAO();
                a_products_specs_detDAO.Createa_products_specs_det(a_products_specs_det);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_products_specs_det(a_products_specs_det a_products_specs_det)
        {            
            try
            {
                a_products_specs_detDAO a_products_specs_detDAO = new a_products_specs_detDAO();
                a_products_specs_detDAO.Updatea_products_specs_det(a_products_specs_det);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_products_specs_det(int id)
        {            
            try
            {
                a_products_specs_detDAO a_products_specs_detDAO = new a_products_specs_detDAO();
                a_products_specs_detDAO.Deletea_products_specs_det(id);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_products_specs_det Geta_products_specs_det(int id)
        {            
            try
            {
                a_products_specs_detDAO a_products_specs_detDAO = new a_products_specs_detDAO();
                return a_products_specs_detDAO.Geta_products_specs_det(id);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_products_specs_detCollection Geta_products_specs_detList(a_products_specs_detColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_products_specs_detDAO a_products_specs_detDAO = new a_products_specs_detDAO();
                return a_products_specs_detDAO.Geta_products_specs_detList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_products_specs_detCollection Geta_products_specs_detList(a_products_specs_detColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_products_specs_detDAO a_products_specs_detDAO = new a_products_specs_detDAO();
                return a_products_specs_detDAO.Geta_products_specs_detList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}